package com.example.mybatisxmltest.demos.web.mapper;

import com.example.mybatisxmltest.demos.web.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from tb_user where id = #{id}")
     User getUser(String id);

    @Select("select * from tb_user")
     User getUser2();

     User getUser3(@Param("id") Integer id,@Param("username")  String  username,@Param("phone")  String  phone);

     User getUser4(@Param("id") Integer id);
}
